package com.Helper;

public class PassInfo 
{
	// reservation ID
	public String resID; 
	public String leavingTime;
	public String arrivingTime;
	public String airline;
	public String flightID;
	public String seat;
	public String gate;
	public String firstName;
	public String lastName;
	public String leavingLocation;
	public String arrivingLocation;
	public String meal;
	public String imgName;
	private static final String imgPath = "/Website/icon/";
		
	public PassInfo()
	{
		
	}
	
	public String getID()
	{
		return resID;
	}
		
	public String getAirline()
	{
		return airline;
	}
	
	public String getFlightID()
	{
		return flightID;
	}
	
	public String getSeat()
	{
		return seat;
	}
	
	public String getGate()
	{
		return gate;
	}
	
	public String getFirstName()
	{
		return firstName;
	}
	
	public String getLastName()
	{
		return lastName;
	}
	
	public String getLeavingLocation()
	{
		return leavingLocation;
	}
	
	public String getArrivingLocation()
	{
		return arrivingLocation;
	}
	
	public String getLeavingDate()
	{
		String s = leavingTime.substring(0, 10);
		return s;
	}
	
	public String getArrivingDate()
	{
		String s = arrivingTime.substring(0, 10);
		return s;
	}
	
	public String getLeavingTime()
	{
		String s = leavingTime.substring(11, 16);
		return s;
	}
	
	public String getArrivingTime()
	{
		String s = arrivingTime.substring(11, 16);
		return s;
	}
	
	public String getImage()
	{
		imgName = imgPath;
		if (airline.equals("Air Canada")) imgName += "aircanadalogo.png";
		else if (airline.equals("Air China")) imgName += "airchinalogo.png";
		else
		{
			imgName += "aircanadalogo.png";
		}
		
		return imgName;
	}
	
	public String getFullName()
	{
		String name = firstName + " " + lastName;
		return name;
	}
	
	public String getMeal()
	{
		return meal;
	}

}
